package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.Set;

public interface PermissionDao {
    Set<Permission> findByRoleId(Integer roleId);

    Page<Permission> selectByCondition(String queryString);

    void addPermission(Permission permission);

    Permission findById(Integer id);

    void editPermission(Permission permission);

    void deletePermission(Integer id);
}
